﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.ServiceModel.Web;

namespace AddAnswertoDatabaseWebApplication
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IInsertAnswerDataByClientsService" in both code and config file together.
    [ServiceContract]
    public interface IInsertAnswerDataByClientsService
    {
        [OperationContract]
        [WebInvoke(Method = "GET",
                          ResponseFormat = WebMessageFormat.Json,
                          UriTemplate = "account={clientId}_questionSetName={questionSetName}_questionName={questionName}_answers={answer}")]
        string InsertAnswerToDatabase(string clientId, string questionSetName, string questionName, string answer);
    }
}
